<style>
/*#peccancyIssuanceRecord-edit .layui-form-label{*/
/*    width: 126px;*/
/*}*/

/*#peccancyIssuanceRecord-edit .layui-input-block{*/
/*    margin-left: 156px;*/
/*}*/

</style>
<div class="febs-container" id="peccancyIssuanceRecord-edit">
    <div class="febs-open-body">
        <form class="layui-form" action="" lay-filter="peccancyIssuanceRecord-edit-form">
            <div class="layui-card">
                <blockquote class="layui-elem-quote layui-elem-quote-primary" id="">违章信息</blockquote>
                <div class="layui-card-body">
                    <div class="layui-form-item febs-hide">
                        <div class="layui-row">
                            <div class="layui-col-xs6">
                                <label class="layui-form-label febs-form-item-require">id：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="informationId" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-col-xs6">
                                <label class="layui-form-label febs-form-item-require">公司Id：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="tenantId" autocomplete="off" class="layui-input"
                                           maxlength="32">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-col-md6">
                            <label class="layui-form-label layui-form-label-detail">违章单号：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${peccancyInformation.peccancyNo}"></div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-col-md6">
                            <label class="layui-form-label layui-form-label-detail">所属业务：</label>
                            <div th:switch="${peccancyInformation.businessType}">
                                <div th:case="1" class="layui-input-block layui-input-block-html">海工</div>
                                <div th:case="2" class="layui-input-block layui-input-block-html">修船</div>
                                <div th:case="3" class="layui-input-block layui-input-block-html">造船</div>
                                <div th:case="4" class="layui-input-block layui-input-block-html">场地</div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <label class="layui-form-label layui-form-label-detail">项目名称：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${peccancyInformation.projectName}"></div>
                        </div>

                    </div>
                    <div class="layui-form-item">
<!--                        <div class="layui-col-md6">-->
<!--                            <label class="layui-form-label layui-form-label-detail">违章地点：</label>-->
<!--                            <div class="layui-input-block" th:text="${peccancyInformation.peccancyAxis}"></div>-->
<!--                        </div>-->
                        <div class="layui-col-md6">
                            <label class="layui-form-label layui-form-label-detail">是否现场：</label>
                            <div th:if="${peccancyInformation.isScene eq '1'}">
                                <div class="layui-input-block layui-input-block-html" th:text="是"></div>
                            </div>
                            <div  th:if="${peccancyInformation.isScene eq '0'}">
                                <div class="layui-input-block layui-input-block-html" th:text="否"></div>
                            </div>
                        </div>

                    </div>
                    <div class="layui-form-item">
                        <div class="layui-col-md6">
                            <label class="layui-form-label layui-form-label-detail">违章对象：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${peccancyInformation.peccancyRealName}"></div>
                        </div>
                        <div class="layui-col-md6">
                            <label class="layui-form-label layui-form-label-detail">作业类别：</label>
                            <div class="layui-input-block layui-input-block-html" id="jobOperation"></div>
                        </div>

                    </div>
                    <div class="layui-form-item">
                        <div class="layui-col-md6">
                            <label class="layui-form-label layui-form-label-detail">违章类型：</label>
                            <div class="layui-input-block layui-input-block-html" id="peccancyType"></div>
                        </div>
                        <div class="layui-col-md6">
                            <label class="layui-form-label layui-form-label-detail">根本原因：</label>
                            <div class="layui-input-block layui-input-block-html" id="peccancyRootCause" ></div>
                        </div>

                    </div>
                    <div class="layui-form-item">
                        <div class="layui-col-md6">
                            <label class="layui-form-label layui-form-label-detail">开单人：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${peccancyInformation.invoiceRealName}"></div>
                        </div>
                        <div class="layui-col-md6">
                            <label class="layui-form-label layui-form-label-detail">开单时间：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${peccancyInformation.invoiceDate}"></div>
                        </div>

                    </div>
                    <div class="layui-form-item">
                        <div class="layui-col-md6">
                            <label class="layui-form-label layui-form-label-detail">惩罚原因：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${peccancyInformation.reason}"></div>
                        </div>

                    </div>
                    <div class="layui-form-item">
                        <div class="layui-col-md12">
                            <label class="layui-form-label layui-form-label-detail">违章图片：</label>
                            <div class="layui-input-block layui-input-block-html">
                                <div id="fileUpload" style="height: 120px ;width: 100%">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-col-md6">
                            <label class="layui-form-label layui-form-label-detail" style="width: 84px">违章人签名：</label>
                            <div class="layui-input-block layui-input-block-html" style="margin-left: 114px"
                                 th:text="${peccancyInformation.peccancyUserSign}"></div>
                        </div>
                    </div>
                </div>
            </div>

            <div th:if="${peccancyInformation.auditList} and ${peccancyInformation.auditList.size() > 0}">
                <div class="layui-card">
                    <blockquote class="layui-elem-quote layui-elem-quote-primary" >审核记录</blockquote>
                    <div class="layui-card-body">
                        <div class="layui-form-item">
                            <table lay-filter="peccancyAuditRecordTable" id="peccancyAuditRecordTable" lay-data="{id: 'peccancyAuditRecordTable'}"></table>
                        </div>
                    </div>
                </div>
            </div>

            <div th:if="${peccancyInformation.appeaFlg eq '1'}">
                <div class="layui-card">
                    <blockquote class="layui-elem-quote layui-elem-quote-primary" id="appeal_field">申诉信息</blockquote>
                    <div class="layui-card-body">
                        <div class="layui-form-item">
                            <div class="layui-col-md12">
                                <label class="layui-form-label layui-form-label-detail">申诉信息：</label>
                                <div class="layui-input-block layui-input-block-html" th:text="${peccancyInformation.appealReason}"></div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">申诉人：</label>
                                <div class="layui-input-block layui-input-block-html" th:text="${peccancyInformation.appealRealName}"></div>
                            </div>
                            <div class="layui-col-md6">
                                <label class="layui-form-label layui-form-label-detail">申诉时间：</label>
                                <div class="layui-input-block layui-input-block-html" th:text="${peccancyInformation.appealTime}"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div th:if="${peccancyInformation.issuanceList} and ${peccancyInformation.issuanceList.size() > 0}">
                <div class="layui-card">
                    <blockquote class="layui-elem-quote layui-elem-quote-primary" >签发记录</blockquote>
                    <div class="layui-card-body">
                        <div class="layui-form-item">
                            <table lay-filter="peccancyIssuanceRecordTable" id="peccancyIssuanceRecordTable" lay-data="{id: 'peccancyIssuanceRecordTable'}"></table>
                        </div>
                    </div>
                </div>
            </div>


            <div class="layui-card">
                <blockquote class="layui-elem-quote layui-elem-quote-primary" id="audit_field">审核信息</blockquote>
                <div class="layui-card-body">
                    <div class="layui-form-item">
                        <div class="layui-col-md6">
                            <label class="layui-form-label">违章性质：</label>
                            <input type="radio" name="peccancyNature" title="一般" value="1" checked>
                            <input type="radio" name="peccancyNature" title="较重" value="2">
                            <input type="radio" name="peccancyNature" title="严重" value="3">
                        </div>
                    </div>
                    <div class="layui-form-item" id="learnFlg">
                        <label class="layui-form-label">处理方式：</label>
                        <div class="layui-input-block">

                                    <input type="checkbox" name="learnVideoFlg" id="learnVideoFlg"  title="视频教育" lay-skin="primary">
                                </div>

                    </div>
                    <div class="layui-form-item" id="amountFlg">
                        <div class="layui-input-block">
                            <div class="layui-row">
                                <div th:if="${peccancyInformation.penaltyAmountStatus} eq '1'">
                                    <div class="layui-col-md2">
                                        <input type="checkbox" name="penaltyAmountFlg"  lay-filter="penaltyAmountFlg" lay-skin="primary" checked  disabled title="考核减扣">
                                    </div>
                                    <div class="layui-col-md4">
                                        <input type="text" name="penaltyAmount"  autocomplete="off" class="layui-input"
                                               placeholder="请填写金额"
                                               lay-verify="amount" disabled
                                               data-th-value="${peccancyInformation.finallyPenaltyAmount}"
                                               onkeyup="value=value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'').replace('.','$#$').replace(/\./g,'').replace('$#$','.').replace(/\.{2,}/g,'.').replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')">

                                    </div>
                                </div>
                                <div th:if="${peccancyInformation.penaltyAmountStatus} eq '0'">
                                    <div class="layui-col-md2">
                                        <input type="checkbox" name="penaltyAmountFlg"  lay-filter="penaltyAmountFlg" lay-skin="primary" title="考核减扣">
                                    </div>
                                    <div class="layui-col-md4">
                                        <input type="text" name="penaltyAmount"  id="penaltyAmount" autocomplete="off" class="layui-input"
                                               placeholder="请填写金额"
                                               lay-verify="amount" disabled
                                               onkeyup="value=value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'').replace('.','$#$').replace(/\./g,'').replace('$#$','.').replace(/\.{2,}/g,'.').replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')">

                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>

                    <div class="layui-form-item" id="scoreFlg">
                        <div class="layui-input-block">
                            <div class="layui-row">
                                <div class="layui-col-md2">
                                    <input type="checkbox" name="penaltyScoreFlg" id="penaltyScoreFlg" lay-filter="penaltyScoreFlg" lay-skin="primary" title="扣除个人积分">
                                </div>
                                <div class="layui-col-md4">
                                    <input type="text" name="penaltyScore" autocomplete="off" class="layui-input"
                                           placeholder="请填写扣除积分"
                                           disabled
                                           onkeyup="value=value.replace(/[^\d{1,}\d{1,}|\d{1,}]/g,'').replace(/\./g,'').replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')">

                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-col-md6">
                            <label class="layui-form-label layui-form-label-detail">审核人：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${peccancyInformation.auditRealName}"></div>
                        </div>
                        <div class="layui-col-md6">
                            <label class="layui-form-label layui-form-label-detail">审核时间：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${peccancyInformation.auditDate}"></div>
                        </div>
                    </div>
                </div>
            </div>



            <div class="layui-card">
                <blockquote class="layui-elem-quote layui-elem-quote-primary" id="audtit_field">签发</blockquote>
                <div class="layui-card-body">
                    <div class="layui-form-item">
                        <div class="layui-col-md6">
                            <label class="layui-form-label">签发结果：</label>
                            <input type="radio" name="status" title="签发" value="6" checked>
                            <input type="radio" name="status" title="退回" value="5">
                            <input type="radio" name="status" title="作废" value="10">
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <div class="layui-col-md12">
                            <label class="layui-form-label">备注：</label>
                            <div class="layui-input-block">
                                <textarea type="text" name="issuanceRemark" autocomplete="off" class="layui-textarea"
                                          minlength="2"
                                          maxlength="255" placeholder="请输入签发备注" lay-verify="required"></textarea>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item febs-hide">
                <button class="layui-btn" lay-submit="" lay-filter="peccancyIssuanceRecord-edit-form-submit"
                        id="submit"></button>
                <button type="reset" class="layui-btn" id="reset"></button>
            </div>
        </form>
    </div>
</div>
<script data-th-inline="javascript">
    var peccancyInformation = [[${peccancyInformation}]];
</script>
<script th:src="@{/febs/js/peccancy/peccancyIssuanceRecord/peccancyIssuanceRecordEdit.js(v=1)}"></script>